﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Backend/Backend.Master" Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.AlbumView>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AlbumDetail
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Begin one column tab content window -->
    <div class="onecolumn">
        <div class="header">
            <span>Đăng Ảnh Cho Album</span>
            <div class="switchbutton">
            <% if (Model.AlbumVisible)
                {%>
                <a href="<%= Url.Action("Frontend_AlbumDetails2", "Album", new  { albumID = Model.AlbumID, languageID = Model.LanguageID })%>"
                target="_blank" class="button">Xem nhanh</a>
              <%} %>
                <a href="<%= Url.Action("Edit","Album", new { albumID = Model.AlbumID, languageID = Model.LanguageID }) %>" class="button">Chỉnh sửa</a>
                <%= Html.ActionLink("Thêm mới", "AlbumCreate", "Album", null, new { @class = "button" })%>
                <a href="<%= Url.Action("AlbumList", "Album") %>" class="button">Danh sách</a>
            </div>
        </div>
        <br class="clear" />
        <div class="content">
            <img src="../../../Image/Album/album-<%= Model.AlbumID%>/<%= Model.AlbumPhoto %>" alt="<%= Model.AlbumPhoto %>" class="img_h170" style="margin-left:330px;"/>
            
            <div>
                <div class="editor_left">
                    <label>Mã album: </label> <%= Html.Encode(Model.AlbumID) %>
                    <div class="editor_fr"><label>Hình album đại diện: </label></div>
                </div>
            </div><br class="clear"/><br />
            <div>
                <div class="editor_left">
                    <label>Tên album: </label> <%= Html.Encode(Model.AlbumTitle) %>
                </div>
            </div><br class="clear"/><br />
                
            <% using (Html.BeginForm("InsertAlbumImage", "Album", FormMethod.Post, new { enctype = "multipart/form-data" })){%>
            <div>
                <div class="editor_left">
                    <label>Đăng ảnh:</label><br />
                    <input type="file" id="fileToUpload" name="fileToUpload" multiple="multiple" accept="gif|jpg|png"/>
                </div>
            </div><br class="clear"/><br />
            <p>
                <input type="submit" name="upload" value="Upload"/>
            </p>
                <%= Html.Hidden("albumID", Model.AlbumID) %>
                <%= Html.Hidden("languageID", Model.LanguageID)%>
            <%} %>
        </div>
    </div>
    <% Html.RenderPartial("/Views/Backend/album/AlbumDetail_1.ascx", ViewData["ImageList"]); %>    
</asp:Content>

